package com.verlet.stringsplit.spring.boot;

import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @author verlet
 */
@ConfigurationProperties("stringsplit.service")
public class StringsplitProperties {

    public static final String DEFAULT_CONFIG = "com,verlet,springboot";

    /**
     * 这里配置内容
     */
    private String config = DEFAULT_CONFIG;

    /**
     * 启用
     */
    private boolean enable = false;

    public String getConfig() {
        return config;
    }

    public void setConfig(String config) {
        this.config = config;
    }

    public boolean isEnable() {
        return enable;
    }

    public void setEnable(boolean enable) {
        this.enable = enable;
    }


    @Override
    public String toString() {
        return "StringsplitProperties{" +
                "config='" + config + '\'' +
                ", enable=" + enable +
                '}';
    }
}
